-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Functional update, host and service probes #5653
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
ServiceMonitor.ino needs some updates for web page but works on Serial output.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@hreintke I think the approach is mostly ok, except for my comments. I'll be able to answer with more certainty once you have a more complete implementation.
Just keep pushing changes to this PR, and let me know once you want me to review again.
libraries/ESP8266mDNS/examples/LEAmDNS/mDNS_ServiceMonitor/mDNS_ServiceMonitor.ino
Outdated
Show resolved
Hide resolved
libraries/ESP8266mDNS/examples/LEAmDNS/mDNS_ServiceMonitor/mDNS_ServiceMonitor.ino
Outdated
Show resolved
Hide resolved
libraries/ESP8266mDNS/examples/LEAmDNS/mDNS_ServiceMonitor/mDNS_ServiceMonitor.ino
Outdated
Show resolved
Hide resolved
libraries/ESP8266mDNS/examples/LEAmDNS/mDNS_ServiceMonitor/mDNS_ServiceMonitor.ino
Outdated
Show resolved
Hide resolved
libraries/ESP8266mDNS/examples/LEAmDNS/mDNS_ServiceMonitor/mDNS_ServiceMonitor.ino
Outdated
Show resolved
Hide resolved
example restyle
to struct MDNSServiceInfo { MDNSServiceInfo(MDNSResponder&
Change String -> const char* at multiple locations
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How change in bin size before this change vs. after?
libraries/ESP8266mDNS/src/LEAmDNS.h
Outdated
{ | ||
std::map<String,String> tempKV; | ||
for (auto kv = p_pMDNSResponder._answerKeyvalue(p_hServiceQuery, p_u32AnswerIndex);kv != nullptr;kv = kv->m_pNext) { | ||
tempKV.insert(std::pair<String,String>(String(kv->m_pcKey),String(kv->m_pcValue))); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you can't move to a map of const char *, use of emplace(kv->m_pcKey, kv->m_pcValue) would be better here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will do
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
At this point, I think the map<String, String> is the only pending.
@devyte : |
Excellent work everyone! |
Initial version for review and feedback
In the LEADNS code I added // Functional at the locations I updated